package com.xin.di.uav.applet.shop.service;

import com.xin.di.uav.applet.resp.CommodityDetailInfoResponse;
import com.xin.di.uav.applet.resp.CommodityDetailResponse;
import com.xin.di.uav.applet.resp.CommodityResponse;
import com.xin.di.uav.applet.resp.ShoppingDataResponse;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 01430312
 */
public interface IShoppingService {

    /**
     * 获取商品主页信息
     *
     * @param placementPointId
     * @param longitude
     * @param latitude
     * @return
     */
    ShoppingDataResponse getShoppingData(String placementPointId, BigDecimal longitude, BigDecimal latitude);

    /**
     * 检查是否远距离
     *
     * @param placementPointId
     * @param longitude
     * @param latitude
     * @return
     */
    Boolean checkDistance(String placementPointId, BigDecimal longitude, BigDecimal latitude);


    /**
     * 获取商品主页信息
     *
     * @param commodityId
     * @return
     */
    CommodityDetailResponse getCommodityDetail(String commodityId);

    /**
     * 通过商户id获取
     *
     * @param businessId
     * @return
     */
    List<CommodityResponse> getByBusinessId(String businessId);

    /**
     * 通过订单id查询订单详情
     * @param orderId
     * @return
     */
    CommodityDetailInfoResponse getOrderDetailByOrderId(@RequestParam String orderId);
}
